<?

$dbhost = 'localhost';
$dbuser = 'soverei3_aapthi';
$dbpass = 'aapthitech';
$con = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db('soverei3_omar');

$sql = 'UPDATE userdetailes SET chance_per_day=0, success_per_day=0,date="'.date("Y-m-d", time() + 86400).'"';

mysql_query( $sql, $con );

?>